package com.javalong.affairs.listener;

import com.javalong.affairs.model.ResponseData;
import com.javalong.affairs.utils.StringUtils;
import com.javalong.affairs.utils.ToastUtils;

public class DefaultFailedListener implements FailedListener {

	@Override
	public void onFailed(ResponseData msgBean) {
		String alert = "";
		if (msgBean != null) {
			if (msgBean.errorCode != 0) {
				if (!StringUtils.isEmpty(msgBean.errorInfo)) {
					ToastUtils.showMessage(msgBean.errorInfo);
				}
			}
		}
	}
}
